<?php
namespace app\api\model;

use app\model\Base;

class UnionCoupon extends Base
{
    public function getAmountFormatAttr($value, $data)
    {
        return $data['amount'] / 100 . '元优惠券';
    }

    public function getAmountFormat2Attr($value, $data)
    {
        return $data['amount'] / 100;
    }

    public function getContentAttr($value, $data)
    {
        return '满50可用';
    }
}